Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Core] Fix the unnecessary logs #36931

Merged
merged 1 commit into from
Jul 7, 2023

Conversation

rkooo567
Copy link
Contributor

Why are these changes needed?

This error log could be very spammy.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: SangBin Cho <rkooo567@gmail.com>
@rkooo567 rkooo567 requested a review from a team as a code owner June 29, 2023 00:17
RAY_LOG(ERROR) << "Failed to get is_running_tasks from core worker: "
<< status.ToString();
RAY_LOG(WARNING) << "Failed to get is_running_tasks from core worker: "
<< status.ToString();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, if the status is not ok, should we early return, seems the current code keeps executing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not handle it in this PR and make a follow-up? This error message actually impacts the user experience, so let's make sure we merge this PR first. cc @architkulkarni to follow up with this comment (we probably want to fix that by 2.6 as well).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jjyao @rkooo567 In the case of returning early from status not ok for one of the jobs:

  • should we set is_running_tasks to True or False?
  • should we set the status in the overall reply (which contains info for all the jobs) to OK, or something else?

Also, why should it be a 2.6 release blocker? Will it crash if it doesn't return early?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should reply OK but have a special flag to indicate the result is not known.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the ERROR log is a release blocker. This can easily happen under common cases, and ERROR logs will make drivers spammy. I already saw this message frequently from CI tests.

@rkooo567 rkooo567 merged commit b4b3f90 into ray-project:master Jul 7, 2023
rkooo567 added a commit to rkooo567/ray that referenced this pull request Jul 12, 2023
This error log could be very spammy.
bveeramani pushed a commit that referenced this pull request Jul 13, 2023
This error log could be very spammy.
arvind-chandra pushed a commit to lmco/ray that referenced this pull request Aug 31, 2023
This error log could be very spammy.

Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants